/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.dealer.entity;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 代理商信息Entity
 * @author jyangye
 * @version 2018-02-12
 */
public class ViAgenterWithLevel extends DataEntity<ViAgenterWithLevel> {
	
	private static final long serialVersionUID = 1L;
	private String dealerrelationid;		// 经销商关系ID
	private String dealerid;		// 经销商ID
	private String areaid;		// 区域ID
	private String agentername;		// 经销商名称
	private String dealercode;		// 经销商编号
	private String levelcode;		// 经销商关系level
	private String isclose;		// 是否关闭
	private String dealertype;		// 经销商类型
	private String isself;		// 是否自己
	private String isentitydealer;		// 是否实体经销商
	private String agentername1;		// 一级代理
	private String agentername2;		// 二级代理
	private String agentername3;		// 三级代理
	private String agentername4;		// 四级代理
	private String agentername5;		// 五级代理
	
	public ViAgenterWithLevel() {
		super();
	}

	public ViAgenterWithLevel(String id){
		super(id);
	}

	@Length(min=0, max=11, message="经销商关系ID长度必须介于 0 和 11 之间")
	@ExcelField(title="经销商关系ID", align=2, sort=20)
	public String getDealerrelationid() {
		return dealerrelationid;
	}

	public void setDealerrelationid(String dealerrelationid) {
		this.dealerrelationid = dealerrelationid;
	}
	
	@Length(min=0, max=11, message="经销商ID长度必须介于 0 和 11 之间")
	@ExcelField(title="经销商ID", align=2, sort=30)
	public String getDealerid() {
		return dealerid;
	}

	public void setDealerid(String dealerid) {
		this.dealerid = dealerid;
	}
	
	@Length(min=0, max=32, message="区域ID长度必须介于 0 和 32 之间")
	@ExcelField(title="区域ID", align=2, sort=40)
	public String getAreaid() {
		return areaid;
	}

	public void setAreaid(String areaid) {
		this.areaid = areaid;
	}
	
	@Length(min=0, max=100, message="经销商名称长度必须介于 0 和 100 之间")
	@ExcelField(title="经销商名称", align=2, sort=50)
	public String getAgentername() {
		return agentername;
	}

	public void setAgentername(String agentername) {
		this.agentername = agentername;
	}
	
	@Length(min=0, max=32, message="经销商编号长度必须介于 0 和 32 之间")
	@ExcelField(title="经销商编号", align=2, sort=60)
	public String getDealercode() {
		return dealercode;
	}

	public void setDealercode(String dealercode) {
		this.dealercode = dealercode;
	}
	
	@Length(min=0, max=32, message="经销商关系level长度必须介于 0 和 32 之间")
	@ExcelField(title="经销商关系level", align=2, sort=70)
	public String getLevelcode() {
		return levelcode;
	}

	public void setLevelcode(String levelcode) {
		this.levelcode = levelcode;
	}
	
	@Length(min=0, max=1, message="是否关闭长度必须介于 0 和 1 之间")
	@ExcelField(title="是否关闭", align=2, sort=80)
	public String getIsclose() {
		return isclose;
	}

	public void setIsclose(String isclose) {
		this.isclose = isclose;
	}
	
	@Length(min=0, max=1, message="经销商类型长度必须介于 0 和 1 之间")
	@ExcelField(title="经销商类型", align=2, sort=90)
	public String getDealertype() {
		return dealertype;
	}

	public void setDealertype(String dealertype) {
		this.dealertype = dealertype;
	}
	
	@Length(min=0, max=1, message="是否自己长度必须介于 0 和 1 之间")
	@ExcelField(title="是否自己", align=2, sort=100)
	public String getIsself() {
		return isself;
	}

	public void setIsself(String isself) {
		this.isself = isself;
	}
	
	@Length(min=0, max=1, message="是否实体经销商长度必须介于 0 和 1 之间")
	@ExcelField(title="是否实体经销商", align=2, sort=110)
	public String getIsentitydealer() {
		return isentitydealer;
	}

	public void setIsentitydealer(String isentitydealer) {
		this.isentitydealer = isentitydealer;
	}
	
	@Length(min=0, max=64, message="一级代理长度必须介于 0 和 64 之间")
	@ExcelField(title="一级代理", align=2, sort=120)
	public String getAgentername1() {
		return agentername1;
	}

	public void setAgentername1(String agentername1) {
		this.agentername1 = agentername1;
	}
	
	@Length(min=0, max=64, message="二级代理长度必须介于 0 和 64 之间")
	@ExcelField(title="二级代理", align=2, sort=130)
	public String getAgentername2() {
		return agentername2;
	}

	public void setAgentername2(String agentername2) {
		this.agentername2 = agentername2;
	}
	
	@Length(min=0, max=64, message="三级代理长度必须介于 0 和 64 之间")
	@ExcelField(title="三级代理", align=2, sort=140)
	public String getAgentername3() {
		return agentername3;
	}

	public void setAgentername3(String agentername3) {
		this.agentername3 = agentername3;
	}
	
	@Length(min=0, max=64, message="四级代理长度必须介于 0 和 64 之间")
	@ExcelField(title="四级代理", align=2, sort=150)
	public String getAgentername4() {
		return agentername4;
	}

	public void setAgentername4(String agentername4) {
		this.agentername4 = agentername4;
	}
	
	@Length(min=0, max=64, message="五级代理长度必须介于 0 和 64 之间")
	@ExcelField(title="五级代理", align=2, sort=160)
	public String getAgentername5() {
		return agentername5;
	}

	public void setAgentername5(String agentername5) {
		this.agentername5 = agentername5;
	}
	
}